import java.util.*;

class BankBusiness{
    public String bankName;
    private String name;
    private int password;
    private double balance;

    BankBusiness(String name,int password){
        this.bankName ="中国银行";
        this.name = name;
        this.password = password;
        this.balance = 0;
    }

    public void welcome(){
        System.out.println(bankName+"欢迎您的到来！");
    }
    public void welcomeNext(){
        System.out.println("请收好您的证件和物品，欢迎您下次光临！");
    }

    public void deposit(int password,double money){
        if(this.password!=password){
            System.out.println("您的密码错误！");
            return;
        }
        else {
            this.balance+=money;
            System.out.println("您的余额有"+balance+"元。");
            return;
        }
    }

    public void withdraw(int password,double money){
        if(this.password!=password){
            System.out.println("您的密码错误！");
            return;
        }
        else{
            if(balance<money){
                System.out.println("您的余额不足！");
                return;
            }
            else{
                balance-=money;
                System.out.println("请取走钞票，您的余额还有"+balance+"元。");
                return;
            }
        }
    }
}

public class Main5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String name = sc.next();
        int password = sc.nextInt();

        BankBusiness account = new BankBusiness(name,password);
        account.welcome();

        password = sc.nextInt();
        double money = sc.nextDouble();
        account.deposit(password,money);

        password = sc.nextInt();
        money = sc.nextDouble();
        account.withdraw(password,money);

        password = sc.nextInt();
        money = sc.nextDouble();
        account.withdraw(password,money);

        password = sc.nextInt();
        money = sc.nextDouble();
        account.withdraw(password,money);

        account.welcomeNext();

        sc.close();
    }
}
